package com.zyz.L_泛型.通配符.应用;

/**
 * @author: vick
 * @Date: 2025/4/2
 * @Description:
 * @version: 1.0
 */
// extends 上限  本身或者其子类
public class Person <T extends Info> {
    private T info;

    public Person(T info) {
        this.info = info;
    }

    public T getInfo() {
        return info;
    }

    public void setInfo(T info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "Person{" +
                "info=" + info +
                '}';
    }
}
